home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.level1._x > 298)
- {
- _root.level1._x = 298;
- }
- trace(_root.score.score1);
- if(_root.endlevel3)
- {
- if(!_root.inair)
- {
- if(_root.level1._x > 100)
- {
- if(_root.level1._x < 180)
- {
- _root.jumpsuccess = false;
- }
- }
- else
- {
- _root.jumpsuccess = true;
- }
- if(_root.level1._x > 180)
- {
- if(_root.level1._x < 300)
- {
- _root.jumpsuccess = true;
- }
- }
- if(_root.level1._x > 0)
- {
- if(_root.level1._x < 70)
- {
- _root.jumpsuccess = true;
- }
- }
- else
- {
- _root.jumpsuccess = false;
- }
- if(_root.level1._x > -225)
- {
- if(_root.level1._x < -120)
- {
- _root.jumpsuccess = true;
- }
- }
- else
- {
- _root.jumpsuccess = false;
- }
- if(_root.level1._x > -400)
- {
- if(_root.level1._x < -300)
- {
- _root.jumpsuccess = true;
- }
- }
- else
- {
- _root.jumpsuccess = false;
- }
- if(_root.level1._x > -630)
- {
- if(_root.level1._x < -540)
- {
- _root.jumpsuccess = true;
- }
- }
- else
- {
- _root.jumpsuccess = false;
- }
- if(_root.level1._x > -850)
- {
- if(_root.level1._x < -760)
- {
- _root.jumpsuccess = true;
- }
- }
- else
- {
- _root.jumpsuccess = false;
- }
- if(_root.level1._x > -1120)
- {
- if(_root.level1._x < -980)
- {
- _root.jumpsuccess = true;
- }
- }
- else
- {
- _root.jumpsuccess = false;
- }
- if(_root.level1._x < -1120)
- {
- _root.jumpsuccess = true;
- }
- if(!_root.jumpsuccess)
- {
- _root.sheep.gotoAndStop(16);
- }
- }
- }
- if(_root.endlevel2)
- {
- if(_root.level1._x < -1000)
- {
- _root.sheepupgrade1 = true;
- _root.level1.larmour._visible = false;
- }
- }
- if(_root.levmoveR)
- {
- _root.level1._x -= 3;
- }
- if(_root.levmoveL)
- {
- _root.level1._x += 3;
- }
- if(_root.jumpR)
- {
- _root.level1._x -= 13;
- }
- if(_root.jumpL)
- {
- _root.level1._x += 13;
- }
- }
-